package com.block.datapush.form.item.util;

import cn.hutool.core.util.StrUtil;
import com.block.common.enums.BaseTypeInfoEnum;

import java.util.Arrays;
import java.util.List;

public class ZiWeiHuaUtil {

    public static Integer getZhima(String zhima){
        if (StrUtil.equals(BaseTypeInfoEnum.ZhimaScore.zm001.getValue(), zhima)){
            return 41;
        }else if (StrUtil.equals(BaseTypeInfoEnum.ZhimaScore.zm002.getValue(), zhima)){
            return 41;
        }else if (StrUtil.equals(BaseTypeInfoEnum.ZhimaScore.zm003.getValue(), zhima)){
            return 42;
        }else if (StrUtil.equals(BaseTypeInfoEnum.ZhimaScore.zm004.getValue(), zhima)){
            return 43;
        }else if (StrUtil.equals(BaseTypeInfoEnum.ZhimaScore.zm005.getValue(), zhima)){
            return 45;
        }
        return 41;
    }




    public static Integer getShebao(String socialInsurance) {
        if (StrUtil.equals(BaseTypeInfoEnum.SocialInsurance.si001.getValue(), socialInsurance)){
            return 31;
        }
        return 29;
    }
    public static Integer getbaitiao(String baitiao) {
        if (StrUtil.equals(BaseTypeInfoEnum.Baitiao.bt001.getValue(), baitiao)){
            return 14;
        }
        return 16;
    }

    public static Integer getGjj(String gjj) {
        if (StrUtil.equals(BaseTypeInfoEnum.Gjj.gjj001.getValue(), gjj)){
            return 36;
        }
        return 34;
    }

    public static Integer getCar(String car) {
        if (StrUtil.equals(BaseTypeInfoEnum.Car.car001.getValue(), car)){
            return 52;
        }
        return 54;
    }

    public static Integer getHouse(String house) {
        if (StrUtil.equals(BaseTypeInfoEnum.House.hu001.getValue(), house)){
            return 55;
        }
        return 57;
    }

    public static Integer getBaodan(String insurance) {
        if (StrUtil.equals(BaseTypeInfoEnum.Insurance.in001.getValue(), insurance)){
            return 0;
        }
        return 1;
    }
}
